const http = require('http');

const app = http.createServer();
app.listen(3000);

app.on('request', (req, res) => {
    console.log(req.url, req.method);
    res.writeHead(200, {
        'Content-Type': 'text/html;charset=utf-8',
        'Server-ID': 'server-001'
    });

    res.write("ok");
    res.end();
});